package com.java.boot.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

/**
 * @author jingjintao
 * @date 2021/8/1 - 16:59
 **/
@Data
@ConfigurationProperties("person")
@Component
@Profile("prod")
public class Worker implements Person {

    private String name;
    private Integer age;
}
